package ftl.games.piratas;

import org.anddev.andengine.engine.handler.physics.PhysicsHandler;

import org.anddev.andengine.entity.sprite.AnimatedSprite;
import org.anddev.andengine.opengl.texture.region.TiledTextureRegion;

public class Vehiculo extends AnimatedSprite {

	private final PhysicsHandler mPhysicsHandler;
	
	
	
	public Vehiculo(float pX, float pY, float pTileWidth, float pTileHeight,TiledTextureRegion pTiledTextureRegion) {
		super(pX, pY, pTileWidth, pTileHeight, pTiledTextureRegion);
		this.mPhysicsHandler = new PhysicsHandler(this);
		this.Inicio();
		
	}

	public Vehiculo(final float pX, final float pY, final TiledTextureRegion pTextureRegion) {
		super(pX, pY, pTextureRegion);
		this.mPhysicsHandler = new PhysicsHandler(this);
		this.Inicio();

	}
	public void Inicio ()
	{
		this.registerUpdateHandler(this.mPhysicsHandler);
	}	
	

	
	
}
